<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Robinsons Land Corporation | Content Management System</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/table.css" type="text/css"/>	
<link href="<?php echo Yii::app()->theme->baseUrl ?>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo Yii::app()->theme->baseUrl ?>/css/layout.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/galleria.classic.css" id="galleria-theme" />

<script src="<?php echo Yii::app()->theme->baseUrl ?>/js/js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="<?php echo Yii::app()->theme->baseUrl ?>/js/js/cufon-yui.js" type="text/javascript"></script>
<script src="<?php echo Yii::app()->theme->baseUrl ?>/js/js/cufon-replace.js" type="text/javascript"></script>
<script src="<?php echo Yii::app()->theme->baseUrl ?>/js/js/Myriad_Pro_400.font.js" type="text/javascript"></script>
<script src="<?php echo Yii::app()->theme->baseUrl ?>/js/js/Myriad_Pro_600.font.js" type="text/javascript"></script>

<!--[if lt IE 7]>
	<link href="ie_style.css" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
<body id="page1">
<!-- header -->
<div id="header">
	<div class="container">
<!-- .logo -->
		<div class="logo">
			<a href="index.php?r=site/index"><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/logo.gif" alt="" /></a>
		</div>
<!-- /.logo -->
<!-- .nav -->

		<?php $this->widget('zii.widgets.CMenu',array(
			'htmlOptions' => array( 'class' => 'nav' ),
			'linkLabelWrapper' => 'span',
			'activeCssClass'	=> 'current',
			'items'=>array(
				array('label'=>'Home', 'url'=>array('/site/index')),
				array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
				array('label'=>'Guestbook', 'url'=>array('/guestbook/create')),
				array('label'=>'Map View', 'url'=>array('/mapview/index')),
				array('label'=>'List View', 'url'=>array('/listView/index')),
				array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		)); ?>

<!-- /.nav -->
<!-- .extra-box -->
		<!--div class="extra-box">
			<div class="inner">
				
			</div-->
		</div>
<!-- /.extra-box -->
<!-- .intro-text -->
<?php
	$sitesettings = Sitesettings::model()->find();
?>
		<div class="intro-text">
			<!--<h1>Your dreams,<span>our</span><em>foundation.</em></h1>-->
			<?php echo '<h1>';
			echo $sitesettings->headlinetitle1;
			echo '<span>';
			echo $sitesettings->headlinetitle2;
			echo '</span>';
			echo '<em>'.$sitesettings->headlinetitle3.'</em>';
			echo '</h1>'; 
			?>
			<!--<p>The strength of Robinsons Land Corporation is founded in its vision for a brighter tomorrow and its mission of improving the Filipinos’ lives.</p>-->
			<p><?php echo $sitesettings->headlinecontent; ?>
			<div class="wrapper">
			<?php echo CHtml::link('Properties',array('listView/index'),array('class'=>'button'));?>
			</div>
			<!-- /.intro-text -->
		</div>
	</div>
</div>
<!-- content -->
<div id="content"><div class="inner_copy">More <a href="http://www.templatemonster.com/">Website Templates</a> at TemplateMonster.com!</div>
	<div class="container">
		<div class="wrapper">
			<div class="aside">
			
<!-- .box -->
				<div class="box">
					<?php 
			if(!Yii::app()->user->isGuest)
			{
				echo '
									<h3><span>Administrator Menu</span></h3>

					<ul class="list1">';
						echo '<li>'.CHtml::link('Dashboard',array('site/dashboard')).'</li>';
						echo '<li>'.CHtml::link('Project',array('project/admin')).'</li>';
						echo '<li>'.CHtml::link('Testimonials',array('testimonials/admin')).'</li>';
						echo '<li>'.CHtml::link('Picture',array('picture/admin')).'</li>';
						echo '<li>'.CHtml::link('Guestbook',array('guestbook/admin')).'</li>';
						echo '<li>'.CHtml::link('Users',array('users/admin')).'</li>';
						echo '<li>'.CHtml::link('Email Blast',array('emailBlast/index')).'</li>';
						echo '<li>'.CHtml::link('Requests for Price Quotes',array('pricequote/admin')).'</li>';
						echo '<li>'.CHtml::link('Properties',array('property/admin')).'</li>';
						echo '<li>'.CHtml::link('Site Settings',array('sitesettings/update','id'=>1)).'</li>';
						echo '<li>'.CHtml::link('Contact Card',array('contactcard/update','id'=>1)).'</li>';
					echo '</ul>';
			}else{
				$contactcard=Contactcard::model()->findByPk(1);
				echo CHtml::link('<img src="'.Yii::app()->request->baseUrl.'/images/'. $contactcard->pic .'" style="width: 100%;">',array('contactcard/view','id'=>1));
				echo '<br><br>';
				echo '<b><font size="4" color="#d60c0c"><span>' . $contactcard->name . '</span></font></b>';
				echo '<br>';
				echo '<b><span>' . $contactcard->contactno . '</span></b>';
				echo '<br>';
				echo '<b><span>' . $contactcard->email . '</span></b>';
				echo '<br>';
				echo '<p>' . $contactcard->description . '</p>';

			}
			
			?>	
				</div>
<!-- /.box -->
			</div>
			<div class="mainContent">
				<div class="article">
					<?php echo $content ?>
				</div>
				<?php /*
				<div class="article">
					<h2>Welcome<em>To our Architect website page</em></h2>
					<p><strong class="txt1">Healthy Building</strong> is a free web template created by TemplateMonster.com team. This website template is optimized for 1024X768 screen resolution.</p> 
					<div class="img-box">
						<img src="<?php echo Yii::app()->theme->baseUrl ?>/images/img1.jpg" alt="" />
						This website template can be delivered in two packages - with PSD source files included and without them. If you need PSD source files, please go to the template download page at TemplateMonster to leave the e-mail address that you want the template ZIP package to be delivered to.
					</div>
					This website template has several pages: <a href="index.html">Home</a>, <a href="about.html">About</a>, <a href="projects.html">Projects</a> (with <a href="project.html">Project Page</a>), <a href="contacts.html">Contacts</a> (note that contact us form – doesn’t work), <a href="sitemap.html">Site Map</a>.
				</div>
				*/ ?>
				<!--<h3>Latest Projects</h3>
				<div class="wrapper">
					<div class="col-1">
						<div class="box1">
							<p><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/img2.jpg" alt="" /></p>
							<h4>Project 1</h4>
							<p class="p1">At vero eos et acmus et iusto odio dignis simos duci mus.</p>
							<div class="wrapper"><a href="#" class="link1"><em><b>Read More</b></em></a></div>
						</div>
					</div>
					<div class="col-2">
						<div class="box1">
							<p><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/img3.jpg" alt="" /></p>
							<h4>Project 2</h4>
							<p class="p1">Nalibero tempore cum soluta nobiest elige ndioptio.</p>
							<div class="wrapper"><a href="#" class="link1"><em><b>Read More</b></em></a></div>
						</div>
					</div>
					<div class="col-3">
						<div class="box1">
							<p><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/img4.jpg" alt="" /></p>
							<h4>Project 3</h4>
							<p class="p1">Temporibus uibusdam et aut officiis debitis aut rerum.</p>
							<div class="wrapper"><a href="#" class="link1"><em><b>Read More</b></em></a></div>
						</div>
					</div>-->
				</div>
			</div>
		</div>
	</div>
</div>
<!-- footer -->
<div id="footer">
	<div class="container">
		Copyright &copy; <?php echo date('Y'); ?> by The Dragon Warriors Minus Po &#8482<br/>
		All Rights Reserved.<br/>
		<?php echo Yii::powered(); ?>
	</div>
</div>
<script type="text/javascript"> Cufon.now(); </script>
</body>

</html>
